package unq.uis.robots.servlets;

import java.io.IOException;
import java.util.Collection;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import unq.uis.robots.applicationsModels.JugadorVista;
import unq.uis.robots.model.Robot;
import unq.uis.robots.model.Sistema;

@SuppressWarnings("serial")
public class FiltrarMisRobotsServlet extends HttpServlet {

	@Override
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		String filtro = request.getParameter("filtro");
		JugadorVista jugadorVista = (JugadorVista)request.getSession().getAttribute("vistaPrincipal");
		jugadorVista.setMisRobotsFiltro(filtro);		
		request.getRequestDispatcher("tablaFiltradaMisRobots.jsp").forward(request, response);
	}
}
